﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using ClassLibrary.DAO;

public partial class UserControl_ucListStatus : System.Web.UI.UserControl
{
    TblStatusJobDAO JobStatusDAO = new TblStatusJobDAO(Global.CONNECTION_STRING);

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string id = Request.QueryString["id"];
            if (id == null || id == "")
            {
            }
            else
            {
                LoadJobStatus();
            }
        }
    }
    private void LoadJobStatus()
    {

        string id = Request.QueryString["id"];
        if (id != null)
        {
            grdJobStatus.DataSource = JobStatusDAO.GetJobStatus(Convert.ToInt32(id));
            grdJobStatus.DataBind();
        }
       
    }
   
}
